#include "VectorGraphics.h"
#include "DocStatsInterface.h"
#include "VectorGraphicsVisitor.h"
#include <stdexcept>

void VectorGraphics::Accept(DocStatsInterface& v)
{
	if(VectorGraphicsVisitor* p = dynamic_cast<VectorGraphicsVisitor*>(&v) )
		p->Visit(*this);
	else
		throw std::runtime_error("Unable to visit VectorGraphics");
}